#include "mainwindow.h"

#include <QApplication>
#include <QFile>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QFile file(":/style/stylesheet.qss");
    if (file.open(QFile::ReadOnly) == true)
    {
        QString styleSheet = QLatin1String(file.readAll());
        a.setStyleSheet(styleSheet);
        file.close();
    }else{
        qDebug() << "Error: Failed to open stylesheet file.";
    }
    

    MainWindow w;
    w.show();

    return a.exec();
}